package com.j180.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import java.io.Serializable;
import java.time.LocalDateTime;

public class StoreCount implements Serializable {

    //商品名
    private String name;

    //价格
    private double price;

    //购买数量
    private int num;

    @JsonSerialize(using = LocalDateTimeSerializer.class)
    //购买时间
    private LocalDateTime createTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "StoreCount{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", createTime=" + createTime +
                '}';
    }
}
